declare let eManager;
const { ccclass, property } = cc._decorator;
@ccclass
export default class HzMiniSelectIconList extends cc.Component {

    _step = [];//名字数组
    _curStep = 1;
    _stepNum = 0;
    //step第几关 stepNum 步骤数
    showList(step: any, stepNum: number, curStep: number) {
        this._step = step;
        this._curStep = curStep;
        this._stepNum = stepNum;
        if(curStep > 4){//最多显示4个
            this.scrollToEnd();
        }
    };

    scrollToEnd(){

    };

    onItemRender(item: any, index: number) {
        let name = this._step[index];
        item.listItem.showData(index, name, this._curStep ,this._stepNum);
    };

}
